import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { BusinessDepartmentComponent } from './department/department.component';
import { BusinessDepartmentAddComponent } from './department/add/add.component';
import { BusinessStaffComponent } from './staff/staff.component';
import { BusinessStaffAddComponent } from './staff/add/add.component';
import { BusinessTaskComponent } from './task/task.component';
import { BusinessCheckingComponent } from './checking/checking.component';
import { BusinessSalaryComponent } from './salary/salary.component';
import { BusinessNoticeComponent } from './notice/notice.component';
import { BusinessWorkCardComponent } from './work-card/work-card.component';
const routes: Routes = [
  {
    path: 'department',
    children: [
      { path: 'list', component: BusinessDepartmentComponent },
      { path: 'add', component: BusinessDepartmentAddComponent }
    ]
  },
  { path: 'staff',
    children: [
      { path: 'list', component: BusinessStaffComponent },
      { path: 'add', component: BusinessStaffAddComponent }
    ]
  },
  { path: 'checking',
    children: [
      { path: 'list', component: BusinessCheckingComponent }
    ]
  },
  { path: 'salary',
    children: [
      { path: 'list', component: BusinessSalaryComponent }
    ]
  },
  { path: 'task', component: BusinessTaskComponent },
  { path: 'notice', component: BusinessNoticeComponent },
  { path: 'workCard', component: BusinessWorkCardComponent }];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BusinessRoutingModule { }
